﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Protected_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        &nbsp;<asp:Button ID="btnReturnToAdminSite" runat="server" OnClick="btnReturnToAdminSite_Click"
            Text="Return to Administrative Site Home" UseSubmitBehavior="False" />
        <br />
        <br />
        Add role to user:
        <asp:DropDownList ID="DropDownListUsers" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1"
            DataTextField="UserName" DataValueField="UserId">
        </asp:DropDownList>
        <br />
        <asp:Button ID="btnAddTeacherRole" runat="server" OnClick="btnAddTeacherRole_Click"
            Text="Add Teacher Role" />
        <asp:Button ID="btnAddStudentRole" runat="server" Text="Add Student Role" OnClick="btnAddStudentRole_Click" />
        <asp:Button ID="btnRemoveTeacherRole" runat="server" Text="Remove Teacher Role" 
            onclick="btnRemoveTeacherRole_Click" />
        <asp:Button ID="btnRemoveStudentRole" runat="server" Text="Remove Student Role" 
            onclick="btnRemoveStudentRole_Click" />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dbConnectionString %>"
            SelectCommand="SELECT [UserId], [UserName] FROM [vw_aspnet_Users] ORDER BY [UserName]">
        </asp:SqlDataSource>
        <asp:Button ID="btnRemoveUser" runat="server" onclick="btnRemoveUser_Click" 
            Text="Remove User From Database" />
        <br />
        <asp:Label ID="lblResult" runat="server"></asp:Label>
        <br />
    </div>
</asp:Content>
